/** 
* This class is Apex scheduler class and is used to kick in the 
* SPA Util Class which does miscellaneous cleanup job
*
* Client - Cisco Systems (Linksys)
* 
* Author - Sayeed Faruqi
* Last Update - Jan 2010
* 
**/

global class SPAUtilScheduler implements Schedulable{
            global void execute(SchedulableContext SC) {
                
// Calls Method for Updating SPA Util flag field.                  
                SPAUtilProcess.CheckSPAUtilFlag();
				system.debug ('Job Completed for Updating Util Flag in SPA');
// Calls Method for Deleting Incomplete SPA records                
                SPAUtilProcess.deleteSPA(); 
				system.debug ('Job Completed for deleting Incomplete SPA');                                            
            }
//test method
    @isTest
    static void testSPA(){
            SPAUtilProcess.deleteSPA();
    }

}